﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Gfw.Repository;
using Gfw.Models.Account;

namespace Gfw.Repositories.Account
{
    public class ActCompanyAccountinformationRepository : Repository<ActCompanyAccountinformation>
    {
        /// <summary>
        /// 在数据库中只有一条记录
        /// </summary>
        /// <param name="work"></param>
        /// <returns></returns>
        public virtual ActCompanyAccountinformation Unique(UnitOfWork work = null)
        {
            return GetAll(work).First();
        }
    }
}
